<template>
  <div>
    <div class="county" v-for="(item, index) in list" :key="index">
      <p class="pp">{{ item.name }}</p>
      <van-button round type="info" class="btn2">{{ item.data[0] }}</van-button>
      <van-button
        round
        type="info"
        class="button1"
        v-for="(item1, index) in item.data"
        :key="index"
        >{{ item1 }}</van-button
      >
      <p class="bottom">
        展开
        <van-icon name="arrow-down" />
      </p>
    </div>
  </div>
</template>

<script>
import { companyMatch } from '@/api/staff'
export default {
  data() {
    return {
      show: false,
      list: [],
    }
  },
  props: {
    companyInfo: {
      require: true,
      type: Array,
    },
  },
  created() {
    this.companyMatch()
  },
  methods: {
    async companyMatch() {
      const res = await companyMatch()
      this.list = res.data
    },
  },
}
</script>

<style scoped lang="less">
.county {
  padding-left: 42px;
  padding-top: 20px;
  .pp {
    font-size: 28px;
  }
  .btn2 {
    color: rgba(63, 81, 181, 100);
    border: 1px solid rgba(63, 81, 181, 100);
    height: 46px;
    background-color: #fff;
  }
  /deep/.button1 {
    color: rgba(123, 119, 119, 100);
    background-color: #fff;
    border: 1px solid rgba(123, 119, 119, 100);
    height: 46px;
    margin: 0 auto;
    margin-left: 20px;
    margin-bottom: 20px;
    margin-top: 20px;
  }
  .bottom {
    font-size: 26px;
    color: rgba(123, 119, 119, 100);
    font-weight: 600;
    text-align: center;
  }
}
</style>
